A function to check if a specific format - by name - is already known by babl.
Should be used in conjunction with babl_format() for user supplied format
strings.
return ret;
}
+int
+babl_format_exists (const char *name)
+{
+ if (babl_db_exist_by_name (db, name))
+ return 1;
+ return 0;
+}
+
+
*/
const Babl * babl_format (const char *name);
+/**
+ * babl_format_exists:
+ *
+ * Returns 1 if the provided format name is known by babl or 0 if it is
+ * not. Can also be used to verify that specific extension formats are
+ * available (though this can also be inferred from the version of babl).
+ */
+int babl_format_exists (const char *name);
+
/**
* babl_format_with_space:
*